//
//  CinemaTableViewCell.m
//  MyMovie
//
//  Created by apple on 16/5/21.
//  Copyright © 2016年 ljp. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCinema:(Cinema *)cinema {

    _cinemaName.text = cinema.name;
    _addressLable.text = cinema.address;
    _ratingLable.text = cinema.rating;
    _priceLable.text = [NSString stringWithFormat:@"¥%@",cinema.price];

    _seatMark.hidden = !cinema.isSeatSupport;
    _couponMark.hidden = !cinema.isCouponSupport;
    _grouponMark.hidden = !cinema.isGroupBuySupport;
    _imaxMark.hidden = !cinema.isImaxSupport;

    if ([cinema.price isKindOfClass:[NSNull class]]) {
        _priceLable.hidden = YES;
    }else {
        _priceLable.hidden = NO;
    }

    if ([cinema.rating floatValue] > 0) {
        _ratingLable.hidden = NO;
    }else {
        _ratingLable.hidden = YES;
    }
}


@end
